# Contributor: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
maintainer="team/kde <bribbers@disroot.org>"
pkgname=arianna
pkgver=24.08.2
pkgrel=0
pkgdesc="EPub Reader for mobile devices"
url="https://invent.kde.org/graphics/arianna/"
# armhf blocked by extra-cmake-modules
# ppc64le, s390x, riscv64 and loongarch64 blocked by qt6-qtwebengine
# x86 blocked by limited featureset of qt6-qtwebengine
arch="all !armhf !ppc64le !s390x !riscv64 !x86 !loongarch64"
license="(BSD-2-Clause OR BSD-3-Clause) AND (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.0-or-later OR LGPL-2.1-or-later OR LGPL-3.0-or-later)"
depends="
	kirigami-addons
	kirigami
	"
makedepends="
	baloo-dev
	extra-cmake-modules
	karchive-dev
	kconfig-dev
	kcoreaddons-dev
	kdbusaddons-dev
	kfilemetadata-dev
	ki18n-dev
	kirigami-addons-dev
	kirigami-dev
	kwindowsystem-dev
	qqc2-desktop-style-dev
	qt6-qtbase-dev
	qt6-qthttpserver-dev
	qt6-qtsvg-dev
	qt6-qtwebengine-dev
	qt6-qtwebsockets-dev
	samurai
	"
subpackages="$pkgname-lang"
_repo_url="https://invent.kde.org/graphics/arianna.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/arianna-$pkgver.tar.xz"
# No tests
options="!check"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
bc7dc855eedfb21533113f79668e06c847d1c7346a56a6c4007aac6f9fa2b88037209eaaab1e473cb7d018ec48299c08e8b2eba3523c987d119d2dc943e12d77  arianna-24.08.2.tar.xz
"
